package com.hmkx.app.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Calendar;

/**
 * Articles entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "articles")
public class Articles extends IdEntity {

	private static final long serialVersionUID = 7799095359860801460L;
	private Integer pCatalogId;
	private Integer catalogId;
	private Boolean posted = true;
	private Boolean award = false;
	private Boolean templeted = false;
	private Integer click;
	private Integer vclick;
	private String title;
	private String subTitle;
	private String shortTitle;
	private String author;
	private String source;
	private String litPic;
	private String litPicy;
	private String litPicapp;
	private String litPicappy;
	private String body;
	private Calendar pubTime;
	private Calendar createTime;
	private String eeUserId;
	private String auditUserId;
	private Calendar auditTime;
	private String auditNopassReason;
	private String memCard = "";
	private String summary;
	private String keywords;
	private Integer postNum = 0;
	private Integer likeCounts = 0;
	private Integer collectCounts = 0;
	private Boolean deleted;
	private Short status;
	private Boolean showSummary = true;
	private String url;
	private Short type;
	private Integer pv = 0;
	private Integer uv = 0;
	private Integer ip = 0;
	private String md5 = "";
	private Boolean appshow;
	private Integer weight;
	private String erimg = "";
	private Boolean zhuanti = false;
	private Integer artvalue = 0;
	
	private String classifytag;
	
	private String audioPath;
	
	private String videoPath = "";

    private Integer arttype=0;
    
	private Integer staticflag = 0;
	
	private String contentpic2;
	private String contentpic3;

	private Integer picType = 0;
	private Integer picCount=0;
	
	public Articles() {
	}

	public Articles(Integer catalogId, Boolean posted, Boolean award,
                    Boolean templeted, Integer click, Integer vclick, String title,
                    String subTitle, String shortTitle, String author, String source,
                    String litPic, String body, Calendar pubTime, Calendar createTime,
                    String auditNopassReason, String memCard, String summary,
                    String keywords, Integer postNum, Integer likeCounts,
                    Boolean deleted, Short status, Boolean showSummary, String url,
                    Short type, Integer pv, Integer uv, Integer ip, String md5) {
		this.catalogId = catalogId;
		this.posted = posted;
		this.award = award;
		this.templeted = templeted;
		this.click = click;
		this.vclick = vclick;
		this.title = title;
		this.subTitle = subTitle;
		this.shortTitle = shortTitle;
		this.author = author;
		this.source = source;
		this.litPic = litPic;
		this.body = body;
		this.pubTime = pubTime;
		this.createTime = createTime;
		this.auditNopassReason = auditNopassReason;
		this.memCard = memCard;
		this.summary = summary;
		this.keywords = keywords;
		this.postNum = postNum;
		this.likeCounts = likeCounts;
		this.deleted = deleted;
		this.status = status;
		this.showSummary = showSummary;
		this.url = url;
		this.type = type;
		this.pv = pv;
		this.uv = uv;
		this.ip = ip;
		this.md5 = md5;
	}

	public Articles(Integer catalogId, Boolean posted, Boolean award,
                    Boolean templeted, Integer click, Integer vclick, String title,
                    String subTitle, String shortTitle, String author, String source,
                    String litPic, String body, Calendar pubTime, Calendar createTime,
                    String eeUserId, String auditUserId, Calendar auditTime,
                    String auditNopassReason, String memCard, String summary,
                    String keywords, Integer postNum, Integer likeCounts,
                    Boolean deleted, Short status, Boolean showSummary, String url,
                    Short type, Integer pv, Integer uv, Integer ip, String md5) {
		this.catalogId = catalogId;
		this.posted = posted;
		this.award = award;
		this.templeted = templeted;
		this.click = click;
		this.vclick = vclick;
		this.title = title;
		this.subTitle = subTitle;
		this.shortTitle = shortTitle;
		this.author = author;
		this.source = source;
		this.litPic = litPic;
		this.body = body;
		this.pubTime = pubTime;
		this.createTime = createTime;
		this.eeUserId = eeUserId;
		this.auditUserId = auditUserId;
		this.auditTime = auditTime;
		this.auditNopassReason = auditNopassReason;
		this.memCard = memCard;
		this.summary = summary;
		this.keywords = keywords;
		this.postNum = postNum;
		this.likeCounts = likeCounts;
		this.deleted = deleted;
		this.status = status;
		this.showSummary = showSummary;
		this.url = url;
		this.type = type;
		this.pv = pv;
		this.uv = uv;
		this.ip = ip;
		this.md5 = md5;
	}

	public Integer getpCatalogId() {
		return pCatalogId;
	}

	public void setpCatalogId(Integer pCatalogId) {
		this.pCatalogId = pCatalogId;
	}

	public Integer getCatalogId() {
		return this.catalogId;
	}

	public void setCatalogId(Integer catalogId) {
		this.catalogId = catalogId;
	}

	public Boolean getPosted() {
		return this.posted;
	}

	public void setPosted(Boolean posted) {
		this.posted = posted;
	}

	public Boolean getAward() {
		return this.award;
	}

	public void setAward(Boolean award) {
		this.award = award;
	}

	public Boolean getTempleted() {
		return this.templeted;
	}

	public void setTempleted(Boolean templeted) {
		this.templeted = templeted;
	}

	public Integer getClick() {
		return this.click;
	}

	public void setClick(Integer click) {
		this.click = click;
	}

	public Integer getVclick() {
		return this.vclick;
	}

	public void setVclick(Integer vclick) {
		this.vclick = vclick;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSubTitle() {
		return this.subTitle;
	}

	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}

	public String getShortTitle() {
		return this.shortTitle;
	}

	public void setShortTitle(String shortTitle) {
		this.shortTitle = shortTitle;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getSource() {
		return this.source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getLitPic() {
		return this.litPic;
	}

	public void setLitPic(String litPic) {
		this.litPic = litPic;
	}

	public String getLitPicy() {
		return litPicy;
	}

	public void setLitPicy(String litPicy) {
		this.litPicy = litPicy;
	}

	public String getLitPicapp() {
		return litPicapp;
	}

	public void setLitPicapp(String litPicapp) {
		this.litPicapp = litPicapp;
	}

	public String getLitPicappy() {
		return litPicappy;
	}

	public void setLitPicappy(String litPicappy) {
		this.litPicappy = litPicappy;
	}

	public String getBody() {
		return this.body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public Calendar getPubTime() {
		return this.pubTime;
	}

	public void setPubTime(Calendar pubTime) {
		this.pubTime = pubTime;
	}

	public Calendar getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Calendar createTime) {
		this.createTime = createTime;
	}

	public String getEeUserId() {
		return this.eeUserId;
	}

	public void setEeUserId(String eeUserId) {
		this.eeUserId = eeUserId;
	}

	public String getAuditUserId() {
		return auditUserId;
	}

	public void setAuditUserId(String auditUserId) {
		this.auditUserId = auditUserId;
	}

	public Calendar getAuditTime() {
		return this.auditTime;
	}

	public void setAuditTime(Calendar auditTime) {
		this.auditTime = auditTime;
	}

	public String getAuditNopassReason() {
		return this.auditNopassReason;
	}

	public void setAuditNopassReason(String auditNopassReason) {
		this.auditNopassReason = auditNopassReason;
	}

	public String getMemCard() {
		return this.memCard;
	}

	public void setMemCard(String memCard) {
		this.memCard = memCard;
	}

	public String getSummary() {
		return this.summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getKeywords() {
		return this.keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public Integer getPostNum() {
		return this.postNum;
	}

	public void setPostNum(Integer postNum) {
		this.postNum = postNum;
	}

	public Integer getLikeCounts() {
		return this.likeCounts;
	}

	public void setLikeCounts(Integer likeCounts) {
		this.likeCounts = likeCounts;
	}

	public Boolean getDeleted() {
		return this.deleted;
	}

	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}

	public Short getStatus() {
		return this.status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

	public Boolean getShowSummary() {
		return this.showSummary;
	}

	public void setShowSummary(Boolean showSummary) {
		this.showSummary = showSummary;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Short getType() {
		return this.type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	public Integer getPv() {
		return this.pv;
	}

	public void setPv(Integer pv) {
		this.pv = pv;
	}

	public Integer getUv() {
		return this.uv;
	}

	public void setUv(Integer uv) {
		this.uv = uv;
	}

	public Integer getIp() {
		return this.ip;
	}

	public void setIp(Integer ip) {
		this.ip = ip;
	}

	public String getMd5() {
		return this.md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}

	public Boolean getAppshow() {
		return appshow;
	}

	public void setAppshow(Boolean appshow) {
		this.appshow = appshow;
	}
	
	public Integer getCollectCounts() {
		return collectCounts;
	}

	public void setCollectCounts(Integer collectCounts) {
		this.collectCounts = collectCounts;
	}
	
	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	@Column(name = "erimg")
	public String getErimg() {
		return erimg;
	}

	public void setErimg(String erimg) {
		this.erimg = erimg;
	}
	public Boolean getZhuanti() {
		return zhuanti;
	}

	public void setZhuanti(Boolean zhuanti) {
		this.zhuanti = zhuanti;
	}
	public String getClickwan(){
		String ret = ""+click;
		if(click>=10000){
			ret = ""+(click/1000)/10.0+"万";
		}
		return ret;
	}

	public Integer getArtvalue() {
		return artvalue;
	}

	public void setArtvalue(Integer artvalue) {
		this.artvalue = artvalue;
	}

	public String getClassifytag() {
		return classifytag;
	}

	public void setClassifytag(String classifytag) {
		this.classifytag = classifytag;
	}
	
	public String getAudioPath() {
		return audioPath;
	}

	public void setAudioPath(String audioPath) {
		this.audioPath = audioPath;
	}
	
	public String getVideoPath() {
		return videoPath;
	}

	public void setVideoPath(String videoPath) {
		this.videoPath = videoPath;
	}

    public Integer getArttype() {
        return arttype;
    }

    public void setArttype(Integer arttype) {
        this.arttype = arttype;
    }

	public Integer getStaticflag() {
		return staticflag;
	}

	public void setStaticflag(Integer staticflag) {
		this.staticflag = staticflag;
	}
	
	public String getContentpic2() {
		return contentpic2;
	}

	public void setContentpic2(String contentpic2) {
		this.contentpic2 = contentpic2;
	}

	public String getContentpic3() {
		return contentpic3;
	}

	public void setContentpic3(String contentpic3) {
		this.contentpic3 = contentpic3;
	}
	
	public Integer getPicType() {
		return picType;
	}

	public void setPicType(Integer picType) {
		this.picType = picType;
	}

	public Integer getPicCount() {
		return picCount;
	}

	public void setPicCount(Integer picCount) {
		this.picCount = picCount;
	}
}